<!DOCTYPE html>
<html>
<head>
    <title><%=title%></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="/js/jquery.min.js"></script>
    <script src="/js/jQuery.md5.js"></script>
    <script src="/js/common.js"></script>
</head>

<body>

<h1><%=title%></h1>
<div id="list"></div>
<script>
    function getContent(result){
        var list="";
        $.ajax({
            type:"get",
            url:"/articleContent2",
            data:"id="+result+"&time=" + new Date(),
            success :function(result){

                if (result != '-1') {
                    for (var i = 0; i < result.length; i++) {
                        list = list + "<h3>"+ result[i].title+"</h3><p>" + result[i].content +"</p>";

                    }

                    $('#list').html(list);
                }
            }
        });
    }
    getContent();
</script>
<a  href="/report">发表新文章</a>&nbsp;&nbsp;&nbsp;<a href="/index">主页</a>
</body>
</html>